import React, { useState } from 'react'

export default function Child8(props: any) {
    const [labelText, setfirst] = useState("提示")
    const [value, setvalue] = useState("")
    let onchangeHandler = function (e: any) {
        setvalue(e.target.value);
    }

    console.log(props);
    return (
        <React.Fragment>Child8
            {props.children}

            <input
                type="text"
                aria-label={labelText}
                aria-required="true"
                onChange={onchangeHandler}
                value={value}
                name="name"
            />
            <div>
            <label htmlFor="namedInput">Name:</label>
            <input id="namedInput" type="text" name="name" />
            </div>

            <div>
            <label htmlFor="basket">篮球:</label>
            <input id="basket" type="checkbox" name="name" />
            </div>
        </React.Fragment>
    )
}
